package weiyunsuan;
/*
 * Module 1
 * 使用二维数组和循环实现五子棋游戏棋盘的绘制
 * author: leo wang
 */
import java.util.*;

public class HomeWork5 {

	public static void main(String[] args) {
		//16*16的棋盘
		String [][] array = new String[16][16];
		//双重循环打印
		for(int i=0; i<array.length; i++) {
			//打印竖排从0-f
			if(i>=10) {
				System.out.print((char)(i+87) + " ");//转换int为char
			}else if(i==0){
				System.out.print(" ");
			}else {
				System.out.print((i-1) + " ");
			}
			System.out.print(" ");
			for(int j=0; j<array.length; j++) {
				//i等于0的时候，打印第一横排，从0-f
				if(i==0) {
					
					if(j>=10)
					{
						System.out.print((char)(j+87)+ " ");
					}else {
						System.out.print(j + " ");
					}
				}else {
					System.out.print(array[i][j]="+" + " ");
				}
			}
			System.out.println("\n");
		}

	}

}
